<html>
<head>
<title>普通SQL构建</title>
<link rel="shortcut icon"  href="./img/favicon.ico">
<script type="text/javascript" src="./js/jquery-3.6.0.js"></script>
<script type="text/javascript">
$(document).ready(function (){
   $('#search_form').bind("submit", function(){
         var sql = $("#sql").val();
         var params = $("#params").val();
         if(sql == ""){ return false; }

         var options = {
                url: '/build/normal/sql',
                type: 'post',
                dataType: 'text',
                data: $("#search_form").serialize(),
                success: function (data) {
                    if (data.length > 0)
                        $("#user_info").html(data);
                }
         };
         $.ajax(options);
         return false;
   })

   $('#search').click(function(){
        $('#search_form').submit();
   })
});
</script>
</head>
<body>
  <h1>普通SQL构建</h1>
<!-- 	 <textarea id="keyword" rows="3" cols="20" placeholder="请输入sql" name="user_info_keyword">
		      	
		      </textarea> -->
	<form mothod="POST" id="search_form">
	　　<p>   sql: <textarea id="sql" name="sql" type="text" placeholder="请输入sql" cols="100" rows="10" /></textarea></p>
  		<p>params: <textarea id="params"  name="params"  type="text" placeholder="请输入params" cols="100" rows="10"  /></textarea></p>
  		<input type="submit" value="Submit" />
	</form>

	<p id="user_info"></p>
</body>
</html>


